package com.sxkj.gis.routine.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sxkj.gis.ignite.service.UserToIgniteServerService;

@Controller
public class EnterController {
	@Resource
	private UserToIgniteServerService userToIgniteServerService;
	
	private static Integer i=0;
	/**
	 * 进入主页，并将Ignite客户端启动
	 * @return
	 */
	@RequestMapping(value="/goMain.do")
	public String goMain(HttpSession session){
		if(i<1){
			//userToIgniteServerService.getConnectIgniteServer(session);	
		}
		i++;
		session.setAttribute("flog", false);
		return "main";
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	//==================================================工作区已作废	
//	
//	/**
//	 * 跳转至workspace.jsp
//	 * @return
//	 */
//	@RequestMapping(value="/workspace.do")
//	public String goWorkSpace(){
//		return "data/workspace/workspace";
//	}
//	
//	/**
//	 * 跳转至createWorkSpace.jsp
//	 * @return
//	 */
//	@RequestMapping(value="/createworkspace.do")
//	public String goCreateWorkSpace(){
//		return "data/workspace/createWorkSpace";
//	}
//	
//	@ResponseBody
//	@RequestMapping(value="/test.do")
//	public Integer createWorkSpace(){
//		return 1;
//	}
//	
//	@RequestMapping(value="/workspacelist.do")
//	public String workspacelist(){
//		return "data/workspace/workspacelist";
//	}
}
